// 路由拦截组件封装
import { Navigate } from 'react-router-dom'
function AuthCompoent({ children }) {
    const isLogin = sessionStorage.getItem('token')
    return isLogin ? children : <Navigate to="/login" />
}

export default AuthCompoent